package com.open.free.generator.constant;

/**
 * @author Faye.Wang[链接]
 * @version 1.0
 * @date 2020/12/19 11:07
 * @Description
 */
public class TemplateConstants {

    public static String JAVA_FILE_SUFFIX=".java";
    public static String PROPERTIES_FILE_SUFFIX=".properties";
    public static String XML_FILE_SUFFIX=".xml";
    //模板前缀
    public static String FREEMARKER_TEMPLATE ="/freemarker_template/";
    // 项目工程主POM模板
    public static String PROJECT_MAIN_POM = FREEMARKER_TEMPLATE+"main_pom.ftl";
    // Core项目工程主POM模板
    public static String PROJECT_CORE_POM = FREEMARKER_TEMPLATE+"core/core_pom.ftl";
    // Common项目工程主POM模板
    public static String PROJECT_COMMON_POM = FREEMARKER_TEMPLATE+"common/common_pom.ftl";
    // Api项目工程主POM模板
    public static String PROJECT_API_POM = FREEMARKER_TEMPLATE+"api/api_pom.ftl";
    public static String PROJECT_API_SPRINGBOOT_MAIN = FREEMARKER_TEMPLATE+"api/api_springboot_main.ftl";
    /**
     * core包模板
     */
    public static String CORE_DATA_JSON = "/templates"+FREEMARKER_TEMPLATE+"core/core_data.json";
    public static String COMMON_DATA_JSON = "/templates"+FREEMARKER_TEMPLATE+"common/common_data.json";
    public static String API_DATA_JSON = "/templates"+FREEMARKER_TEMPLATE+"api/api_base_data.json";
    /**
     * maven wrapper
     */
    public static String MAVEN_WRAPPER_PROPERTIES = FREEMARKER_TEMPLATE+"api/mvn/maven-wrapper.ftl";
    public static String MAVEN_WRAPPER_DOWNLOADER = FREEMARKER_TEMPLATE+"api/mvn/maven_wrapper_downloader.ftl";
    public static String MAVEN_WRAPPER_JAR = "/templates"+FREEMARKER_TEMPLATE+"api/mvn/maven-wrapper.jar";

    /**
     *配置文件&日志xml生成
     */
    public static String PROPERTIES_DATA_JSON = "/templates"+FREEMARKER_TEMPLATE+"api/properties_data.json";
    public static String LOG4J_TEMPLATE = FREEMARKER_TEMPLATE+"api/log/log4j2.ftl";

    /**
     * 代码生成器模板
     */

    public static String CODE_GENERATOR_ENTITY = FREEMARKER_TEMPLATE+"api/code/code_entity.ftl";
    public static String CODE_GENERATOR_VO = FREEMARKER_TEMPLATE+"api/code/code_vo.ftl";
    public static String CODE_GENERATOR_CONTROLLER = FREEMARKER_TEMPLATE+"api/code/code_controller.ftl";
    public static String CODE_GENERATOR_MAPPER = FREEMARKER_TEMPLATE+"api/code/code_mapper.ftl";
    public static String CODE_GENERATOR_SERVICE = FREEMARKER_TEMPLATE+"api/code/code_service.ftl";
    public static String CODE_GENERATOR_SERVICE_IMPL = FREEMARKER_TEMPLATE+"api/code/code_service_impl.ftl";
    public static String CODE_GENERATOR_MAPPER_XML = FREEMARKER_TEMPLATE+"api/code/code_mapper_xml.ftl";
    public static String CODE_GENERATOR_DTO = FREEMARKER_TEMPLATE+"api/code/multi/code_dto.ftl";
    /**
     * 一对多生成
     */
    public static String CODE_GENERATOR_MULTI_SERVICE = FREEMARKER_TEMPLATE+"api/code/multi/code_service.ftl";
    public static String CODE_GENERATOR_MULTI_SERVICE_IMPL = FREEMARKER_TEMPLATE+"api/code/multi/code_service_impl.ftl";
    public static String CODE_GENERATOR_MULTI_CONTROLLER = FREEMARKER_TEMPLATE+"api/code/multi/code_controller.ftl";
    /**
     * 基础功能模板：登录、权限
     */
    public static String BASE_CODE_DATA_JSON = "/templates"+FREEMARKER_TEMPLATE+"api/module/base_code_data.json";

}
